<template>
    <web-view :src="url"></web-view>
</template>

<script>
export default {
    data() {
        return {
            url: 'https://pub-privacy.xmeye.net/app?pkg=com.jf.jlink&os=iOS&lan=zh&type=protocol&tm=1638324186'
        };
    }
    /**
     * 生命周期函数--监听页面加载
     */,
    onLoad: function (options) {
		let lang = uni.getSystemInfoSync().language
		if(lang == 'zh-CN'){
			this.url='https://pub-privacy.xmeye.net/app?pkg=com.jf.jlink&os=iOS&lan=zh&type=protocol&tm=1638324186'
		}else{
			this.url='https://pub-privacy.xmeye.net/app?pkg=com.jf.jlink&os=iOS&lan=en&type=protocol&tm=1638324186'
		}
        console.log('=== mine:about-service:onLoad:');
    },
    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady: function () {
        console.log('=== mine:about-service:onReady:');
    },
    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function () {
        console.log('=== mine:about-service:onShow:');
        uni.setNavigationBarTitle({
            title: this.$t('navBarTitle.serviceAgreement')
        })
    },
    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function () {
        console.log('--- mine:about-service:onHide:');
    },
    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function () {
        console.log('--- mine:about-service:onUnload:');
    },
    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function () {},
    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom: function () {},
    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function () {},
    methods: {}
};
</script>
<style>
</style>
